package com.booktrading.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
    private Long id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private String realName;
    private String address;
    private String role = "ROLE_USER"; // 默认角色
    private Integer credibility; // 信誉评分，从0-100
    private Date registerTime = new Date(); // 默认为当前时间
    private Date lastLoginTime;
    private Integer status = 1; // 默认为正常状态
} 